<?php

 

class b2c_deposit_refund implements b2c_deposit_interface
{
    
    public function __construct($app)
    {
        $this->app = $app;
    }
    
    
    public function get_type()
    {
        return 'deposit';
    }
    
    
    public function generate_bills($sdf, $arr_bills, $type='online', &$op_id, &$op_name, &$errorMsg,$is_frontend=true)
    {
        // 退款到预存款账号
        $objAdvance = $this->app->model("member_advance");
        $objAdvance->add($arr_bills['member_id'], $sdf['money'], app::get('b2c')->_('预存款退款'), $msg, $sdf['refund_id'], $sdf['order_id'], $sdf['payment'], app::get('b2c')->_('退还订单消费'),0,$is_frontend);
        
        return true;
    }
}